<template>
	<view class="c-footer">
		登录代表您已同意<text @click="open1">用户服务协议</text>&<text @click="open2">隐私政策</text>
	</view>
</template>

<script>
	import common from '../../api/common.js'
	export default{
		methods:{
			open1(){
				common.go('/pages/pack/index/xieyi?url=https://www.xiaoluerp.com/Uploads/fuwuxieyi.html&title=用户服务协议')
				// uni.downloadFile({
				// 	url:'http://www.xiaoluerp.com/Uploads/fuwuxieyi.html',
				// 	success(res){
				// 		var filePath = res.tempFilePath;
				// 		uni.openDocument({
				// 		  filePath: filePath,
				// 		});
				// 	}
				// })
			},
			open2(){
				common.go('/pages/pack/index/xieyi?url=https://www.xiaoluerp.com/Uploads/yinsi.html&title=隐私政策')
				// uni.downloadFile({
				// 	url:'http://www.xiaoluerp.com/Uploads/yinsi.html',
				// 	success(res){
				// 		var filePath = res.tempFilePath;
				// 		uni.openDocument({
				// 		  filePath: filePath,
				// 		});
				// 	}
				// })
			}
		}
	}
</script>

<style scoped>
</style>
